package com.choosefine.it.team.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.common.json.JsonResult;
import com.choosefine.it.team.dao.TeamProjectExperienceMapper;
import com.choosefine.it.team.model.TeamProjectExperience;
import com.choosefine.it.team.service.TeamProjectExperienceService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

/**
 * @author 潘钱钦 上午11:04:24
 *
 */
@Service("teamProjectExperienceService")
public class TeamProjectExperienceServiceImpl implements TeamProjectExperienceService {
	@Autowired
	private TeamProjectExperienceMapper teamProjectExperienceMapper;

	@Override
	public JsonResult selectTeamExperienceByUUID(String userCode, PageDTO pageDTO) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PageDTO selectTeamExperienceByUUID(String userCode, Integer pageNo, Integer pageSize) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Page<TeamProjectExperience> selectTeamExperienceByUserCode(String userCode, PageDTO pageDTO) {
		PageHelper.startPage(pageDTO.getPageNum(), pageDTO.getPageSize());
		Page<TeamProjectExperience> page = teamProjectExperienceMapper.selectTeamExperienceByUserCode(userCode);
		return page;
	}

	@Override
	public int selectCountTeamExperienceByUserCode(String userCode) {
		// TODO Auto-generated method stub
		return teamProjectExperienceMapper.selectCountTeamExperienceByUserCode(userCode);
	}

}
